<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
define('TOKEN',   'gcapi');
class Api extends CI_Controller {
	function __construct(){
		parent::__construct();
	}
	//载入公司入款列表
	public function getToken(){
		$userName   =$this->input->get('username');
		$passWord   =$this->input->get('password');
		$clientKey  =$this->input->get('clientkey');
		$token=md5($userName.$passWord.date('Y-m-d').$clientKey.TOKEN);
		$token=base64_encode($token);
		echo $token;
	    
		
	}
	
	public function getInfo(){
		echo 'eprgdip';
	}

	public function mq(){
		$this->load->library('Huashang/staff');
		$a=$this->staff->curl_get('http://admin.gc360.com/games/play/?gid=&token=123454657465y');
		print_r($a);
		//$this->staff->push(array('id'=>'33333','name'=>'俊在在'));
	}
}